package com.aphrodite.io;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * Enables serialization of an object.
 * <p>
 * Classes that do not implement this interface cannot have their objects
 * serialized.
 * </p>
 * 
 * @author kentelt
 * 
 */
public interface Serializable {

	Object read(InputStream is);

	void write(OutputStream os) throws IOException;
}
